﻿using System;
using System.Collections.Generic;
using TA.JSON;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.HtmlControls;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// <see cref="AutoCompleteExtender.GetSuggestions"/> event arguments.
	/// </summary>
	public class SuggestionsEventArgs : EventArgs
	{
		/// <summary>
		/// Ctor.
		/// </summary>
		/// <param name="prefix"></param>
		public SuggestionsEventArgs(string prefix)
		{
			Prefix = prefix;
		}
		/// <summary>
		/// The prefix which was typed by the user.
		/// </summary>
		public string Prefix { get; set; }
		/// <summary>
		/// The suggestions to be sent back to the client.
		/// </summary>
		public string[] Suggestions { get; set; }
	}
}